#ifndef __BACKGROUND_LAYER_H__
#define __BACKGROUND_LAYER_H__

#include <cocos2d.h>
#include <list>
#include "gofgame/common/cxx_0x.h"
#include "gofgame/common/Ref.h"
using namespace std;
using namespace cocos2d;
using namespace gofgame::common;

namespace gofgame {
	namespace jumpdown {
		namespace layer {
			class BackgroundLayer : public CCLayer {
			public:
				virtual ~BackgroundLayer();
				virtual bool init() _override;
				virtual void update(float dt) _override;
			private:
				list<Ref<CCSprite>> tiles;
				float tileHeight;
				float bottomPosition;
				int totalHeight;
			};
		}
	}
}

#endif //__BACKGROUND_LAYER_H__
